import request from '@/utils/request'

export function menuList(data) {
  return request({
    url: '/menu/list',
    method: 'post',
    data
  })
}

export function menuAdd(data) {

  return request({
    url: '/menu/create',
    method: 'post',
    params:  data
  })
}

export function menuUpdate(data) {

  return request({
    url: '/menu/update',
    method: 'post',
    params:  data
  })
}


export function del(data) {

  return request({
    url: '/menu/update',
    method: 'post',
    params:  data
  })
}

export function parentMenu() {
  return request({
    url: 'menu/options',
    method: 'post',
  })
}

